<template>
  <div>
    <el-dialog
      title="会议详情"
      :visible.sync="meetingShow"
      :before-close="handleClose"
      width="700px"
      append-to-body
      custom-class="dialog-box"
    >
      <el-descriptions class="meeting-descriptions" :column="1" border>
        <!-- <el-descriptions-item>
          <template slot="label"> 评审会议时间 </template>
          {{ mettingData.reviewTimeStart + " - " + mettingData.reviewTimeEnd }}
        </el-descriptions-item> -->
        <el-descriptions-item label-class-name="descriptions-item-label">
          <template slot="label"> 评审会议地点 </template>
          {{ mettingData.reviewAddress }}
        </el-descriptions-item>
      </el-descriptions>
      <div slot="footer" class="dialog-footer">
        <el-button @click="handleClose">关 闭</el-button>
        <!-- <el-button type="primary" @click="submitForm">确 定</el-button> -->
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { getMetting } from "@/api/expertEvaluation/expertEvaluation";
export default {
  name: "meetingDialog",
  props: {
    meetingShow: {
      type: Boolean,
      default: "",
    },
    type: {
      type: String,
      default: "",
    },
    reviewTaskId: {
      type: String,
      default: "",
    },
  },
  data() {
    return {
      rules: {},
      ruleForm: {},
      fileList: [],
      mettingData: {},
    };
  },
  created() {},
  watch: {
    meetingShow(val) {
      if (val == true) {
        this.getMettingList();
      }
    },
  },
  methods: {
    /** 取消按钮 */
    handleClose() {
      this.$emit("changeShowDialog", "false"); //调用父组件的自定义事件，并传值
    },
    /** 确定按钮 */
    submitForm() {
      this.$emit("changeShowDialog", "false");
    },
    getMettingList() {
      getMetting(this.reviewTaskId).then((res) => {
        this.mettingData = res;
      });
    },
  },
};
</script>

<style lang="scss">
</style>
